package com.dmall.modules.admin.service;

import com.dmall.modules.admin.entity.AdminUser;
import com.dmall.modules.admin.entity.AdminUserToken;

/**
 * @author Chen 2017/12/6
 */
public interface ShiroService {

    /**
     * 根据token查询用户
     * @param accessToken
     * @return
     */
    AdminUserToken queryByToken(String accessToken);

    /**
     * 根据用户ID查询用户
     * @param userId
     * @return
     */
    AdminUser queryUser(Long userId);
}
